/* 空调首页样式开始 */
.ac-page {
  min-height: 100vh;
  .top {
    padding-top: 88px;
    background-image: url('../images/ac-bg.png');
    background-size: cover;
    .banner {
      display: flex;

      & > div {
        flex: 1;
        display: flex;
        justify-content: center;
      }
    }
  }
  .content {
    padding: 15px 20px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    margin-top: -15px;
    background-color: #fff;
    & > .title {
      color: var(--primary-text-color);
      font-weight: bold;
      font-size: 15px;
      line-height: 21px;
    }
  }
  .action {
    display: flex;
    justify-content: space-between;

    .item {
      flex: 1;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px;
      background-color: #f5f6f8;
      border-radius: 10px;
      .title {
        font-size: 15px;
        color: var(--primary-text-color);
        font-weight: bold;
      }
      .description {
        color: #999;
        font-size: 12px;
        margin-top: 4px;
      }
    }
    .item:first-child {
      margin-right: 5px;
    }
    .item:last-child {
      margin-left: 5px;
    }
  }
  .btn {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 55px;
    background-color: #fff;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    box-shadow: 0px -2px 4px 1px rgba(193, 202, 220, 0.3);
    & > div {
      font-size: 15px;
      color: #fff;
      background-color: var(--primary-color);
      width: 240px;
      height: 35px;
      border-radius: 20px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
  .mode {
    margin-top: 10px;
    margin-bottom: 20px;
    :deep(.van-tabs__nav--line) {
      background-color: #f5f6f8;
      border-radius: 34px;
      padding: 5px;
    }
    :deep(.van-tab--active) {
      background-color: var(--primary-color);
      border-radius: 34px;
      color: #fff;
    }
    :deep(.van-tabs__line) {
      display: none;
    }
    :deep(.van-tabs--line .van-tabs__wrap) {
      height: auto;
    }
    :deep(.van-tab) {
      height: 37px;
    }
    .tab-item {
      display: flex;
      justify-content: center;
      align-items: center;
      .title {
        font-size: 12px;
        margin-left: 4px;
        color: var(--primary-text-color);
        font-weight: bold;
      }
    }
    :deep(.van-tab--active) {
      .tab-item {
        .title {
          color: #fff;
        }
      }
    }
  }
}
.status-pop {
  position: relative;
  .attention {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 20px;
    top: 42px;
    z-index: 100;
    background-color: #ffffe9;
    border-radius: 5px;
    width: calc(100% - 40px);
    height: 34px;
    & > span {
      color: #ff7700;
      font-size: 10px;
    }
  }
}

/* 空调首页样式结束 */

/* 图表样式开始 */
.echarts-box {
  width: 155px;
  height: 155px;
  position: relative;
  .bg-img {
    width: 155px;
    height: 155px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .circle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 155px;
    height: 155px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  #myEcharts {
    position: absolute;
    left: calc(50% + 1px);
    top: calc(50% - 1px);
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 3;
  }
  .cicle {
    width: 105px;
    height: 105px;
    background-color: #fefefe;
    border-radius: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 16px;
    box-sizing: border-box;
    .unit {
      font-size: 14px;
      color: valar(--primary-text-color);
      font-weight: bold;
      position: absolute;
      top: 51%;
      right: 18px;
      transform: translateY(-50%);
    }
    .text {
      color: #999;
      font-size: 10px;
    }
  }
  .axis-num {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    bottom: 6px;
    left: 0;
    & > div {
      color: #fff;
      font-size: 10px;
    }
  }
}
.echarts-actions {
  width: 154px;
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding-bottom: 45px;
  & > div {
    width: 31px;
    height: 27px;
    border-radius: 4px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
/* 图表样式结束 */

/* 空调机组运行工况图样式开始 */
.machine-page {
  padding-top: 88px;
  height: calc(100vh - 88px);
  background-color: #f5f5f5;
  .content-wrapper {
    background-color: #fff;
    padding: 40px 5px 0;
  }
  .content {
    background-color: #fff;
    box-sizing: border-box;
    position: relative;
    img {
      width: 100%;
    }
    .text-descriptions {
      & > div {
        position: absolute;
        display: flex;
        & > div {
          font-weight: bold;
          font-size: 7px;
          color: #333;
          line-height: 9px;
        }

        span {
          color: #333;
          font-size: 5px;
        }
      }
      .err {
        & > div {
          color: #db0f00;
        }
        span {
          color: #db0f00;
        }
      }
      .t-vertical {
        flex-direction: column;
        align-items: center;
      }
      .t-horizontal {
        align-items: center;
      }
      .t-letter {
        flex-direction: column;
        align-items: center;
        & > div {
          writing-mode: vertical-rl;
          text-orientation: upright;
          white-space: nowrap;
          margin-bottom: 2px;
        }
      }
    }
    .t1 {
      top: 4px;
      left: 35px;
    }
    .t2 {
      top: -16px;
      left: 59px;
    }
    .t3 {
      top: -2px;
      left: 162px;
    }
    .t4 {
      top: -9px;
      right: 24px;
    }
    .t5 {
      top: -9px;
      right: 0px;
    }
    .t6 {
      top: 39px;
      left: 23px;
    }
    .t7 {
      top: 47px;
      left: 113px;
    }
    .t8 {
      top: 47px;
      right: 70px;
    }
    .t9 {
      top: 66px;
      left: 31px;
    }
    .t10 {
      top: 65px;
      left: 108px;
    }
    .t11 {
      left: 23px;
      bottom: -5px;
    }
    .t12 {
      left: 78px;
      bottom: -11px;
    }
    .t13 {
      left: 131px;
      bottom: -26px;
    }
    .t14 {
      left: 148px;
      bottom: -26px;
    }
    .t15 {
      left: 167px;
      bottom: -26px;
    }
    .t16 {
      left: 185px;
      bottom: -26px;
    }
    .t17 {
      left: 203px;
      bottom: -33px;
    }
    .t18 {
      left: 224px;
      bottom: -26px;
    }
    .t19 {
      left: 254px;
      bottom: -40px;
    }
    .t20 {
      right: 54px;
      bottom: -29px;
    }
    .t21 {
      right: 3px;
      bottom: -10px;
      justify-content: center;
    }
    .t22 {
      width: 16px;
      height: 16px;
      img {
        width: 100%;
        height: 100%;
      }
      top: 22px;
      right: 61px;
    }
    .t23 {
      width: 40px;
      height: 30px;
      top: 87px;
      right: 74px;
      position: relative;
      img:first-child {
        width: 40px;
        height: 30px;
      }
      img:last-child {
        width: 16px;
        height: 16px;
        position: absolute;
        top: 8px;
        left: 7px;
        animation: rotate var(--rotation-speed) infinite linear;
      }
    }
    .t24 {
      width: 22px;
      height: 17px;
      top: 19px;
      left: 30px;
      position: relative;
      img:first-child {
        width: 22px;
        height: 17px;
      }
      img:last-child {
        width: 7px;
        height: 7px;
        position: absolute;
        top: 5.5px;
        left: 10.2px;
        animation: rotate var(--rotation-speed) infinite linear;
      }
    }
  }
  .actions {
    background-color: #fff;
    display: flex;
    justify-content: center;
    padding-top: 40px;
    & > div {
      width: 108px;
      height: 75px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      & > div {
        .title {
          color: #999;
          font-size: 10px;
        }
        .description {
          color: var(--primary-text-color);
          font-size: 15px;
          font-weight: bold;
          line-height: 21px;
        }
      }
    }
    & > div:first-child {
      position: relative;
    }
    & > div:first-child::after {
      content: '';
      position: absolute;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
      width: 1px;
      height: 21px;
      background-color: #e5e5e5;
    }
  }
}
/* 空调机组运行工况图样式结束 */

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.bulb-container {
  position: relative;
  width: 200px;
  height: 300px;
}

.bulb {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background-color: yellow;
  border-radius: 50%;
}

.dots {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
}

.dots::before,
.dots::after {
  content: '';
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  animation: blink 1s infinite;
}

.dots::before {
  left: -20px;
}

.dots::after {
  left: 20px;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
